/*
 * @Description:
 * @Author: py
 * @Date: 2024-07-30
 */
import type { PlusColumn } from 'plus-pro-components'

import { useDicts } from './use-dicts'
import { property } from 'lodash-es'

const { getDictOptions } = useDicts()

export function useResourceForm() {
    const columns: PlusColumn[] = [
        {
            colProps: {
                span: 6,
            },
            label: '活动名称',
            prop: 'activityName',
            valueType: 'copy',
        },
    ]

    const state = {
        // activityName: '',
    }
    const form = ref({
        ...state,
    })
    return { form, columns, state }
}

export function useReservationForm() {
    const columns: PlusColumn[] = [
        {
            colProps: {
                span: 6,
            },
            label: '用户名称',
            prop: 'userName',
            valueType: 'copy',
        },
        {
            colProps: {
                span: 6,
            },
            label: '手机号码',
            prop: 'phone',
            valueType: 'copy',
        },
    ]

    const state = {
        // userName: '',
        // phone: '',
    }
    const form = ref({
        ...state,
    })
    return { form, columns, state }
}
